package com.wman.mvp;

import com.wman.data.DataCenter;

import java.util.List;

/**
 * @ProjectName: wman
 * @Package: com.wman.mvp
 * @ClassName: Presenter
 * @Description: java类作用描述
 * @Author: wman
 * @CreateDate: 2019/11/11 11:57
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/11/11 11:57
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class Presenter {
    IView mIView;

    interface IView {
        void showData(String str1, String str2);
    }

    public Presenter(IView mvpActivity) {
        mIView = mvpActivity;
    }

    void load() {
        List<String> data = DataCenter.getData();
        mIView.showData(data.get(0), data.get(1));
    }
}
